<?php


class MyDatabase
{
    private static $_connection;

    public static function connect()
    {
		$user_name = "vadb";
		$password = "vadb";
		$database = "vadb";
		$server = "127.0.0.1";
        $mysqli = new mysqli(  $server, $user_name , $password, $database );
        self::$_connection = $mysqli;
    }

    public static function getConnection()
    {
        return self::$_connection;
    }
}

MyDatabase::connect();



?>
